home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Burning & Media / GB-PVR 1.2.13 / GBPVR10213.msi / Cabs.w1.cab / GuideListingShowTimes.cs464 < prev    next >
Text File  |  2007-02-14  |  5KB  |  151 lines

  1. /// <summary>
  2. /// This object is used to display the top line of the guide which contains the times and previous and
  3. /// next buttons
  4. /// </summary>
  5. namespace gbweb.classes
  6. {
  7.     public class GuideListingShowTimes
  8.     {
  9.         private const string showtimes_corner_fill1 = "<div class=\"";
  10.         private string showtimes_cornerClass = "timeSlot";
  11.         private const string showtimes_corner_fill2 = "\" style=\"width:";
  12.         private int showtimes_cornerWidth = 7;
  13.         private const string showtimes_corner_fill3 = "%;\"><p> </p></div>";
  14.  
  15.         private const string showtimes_fill1 = "<div class=\"";
  16.         private string showtimes_Class = "timeSlot";
  17.         private const string showtimes_fill2 = "\" style=\"";
  18.         private string showtimes_Style = "margin-left: ";
  19.         private int showtimes_Margin = 0;
  20.         private const string showtimes_fill3 = "%; width:";
  21.         private int showtimes_Width = 0;
  22.         private const string showtimes_fill4 = "%;\"><span class=\"time\">";
  23.         private string showtimes_Time = "";
  24.         private const string showtimes_fill5 = " </span></div>";
  25.  
  26.         private const string left_scroll = "%;\"><div id=\"BACK_BUTTON\" title=\"Back\"><a id=\"_ctl0_viewleftbutton\" href=\"javascript:__doPostBack('viewleftbutton','')\">Back</a></div></div>";
  27.  
  28.         public GuideListingShowTimes()
  29.         {
  30.         }
  31.  
  32.         public GuideListingShowTimes(string CornerClass, int CornerWidth, string ShowtimesClass, string ShowtimesStyle,
  33.                                      int ShowtimesMargin, int ShowtimesWidth, string ShowtimesTime)
  34.         {
  35.             showtimes_cornerClass = CornerClass;
  36.             showtimes_cornerWidth = CornerWidth;
  37.             showtimes_Class = ShowtimesClass;
  38.             showtimes_Style = ShowtimesStyle;
  39.             showtimes_Margin = ShowtimesMargin;
  40.             showtimes_Width = ShowtimesWidth;
  41.             showtimes_Time = ShowtimesTime;
  42.         }
  43.  
  44.         public string getShowtimesCornerLine(bool ShowLeftScroll)
  45.         {
  46.             string dispLine = string.Empty;
  47.             dispLine += showtimes_corner_fill1;
  48.             dispLine += showtimes_cornerClass;
  49.             dispLine += showtimes_corner_fill2;
  50.             dispLine += showtimes_cornerWidth;
  51.             if (ShowLeftScroll)
  52.             {
  53.               dispLine += left_scroll;
  54.             }
  55.             else
  56.             {
  57.               dispLine += showtimes_corner_fill3; 
  58.             }
  59.  
  60.             return dispLine;
  61.         }
  62.  
  63.         public string getShowtimesLine()
  64.         {
  65.             string dispLine = string.Empty;
  66.             dispLine += showtimes_fill1;
  67.             dispLine += showtimes_Class;
  68.             dispLine += showtimes_fill2;
  69.             dispLine += showtimes_Style;
  70.             dispLine += showtimes_Margin;
  71.             dispLine += showtimes_fill3;
  72.             dispLine += showtimes_Width;
  73.             dispLine += showtimes_fill4; 
  74.             dispLine += showtimes_Time;
  75.             dispLine += showtimes_fill5;
  76.  
  77.             return dispLine;
  78.         }
  79.  
  80.         public string getCornerClass()
  81.         {
  82.             return showtimes_cornerClass;
  83.         }
  84.         
  85.         public void setCornerClass(string a)
  86.         {
  87.             showtimes_cornerClass = a;
  88.         }
  89.  
  90.         public int getCornerWidth()
  91.         {
  92.             return showtimes_cornerWidth;
  93.         }
  94.  
  95.         public void setCornerWidth(int a)
  96.         {
  97.             showtimes_cornerWidth = a;
  98.         }
  99.  
  100.         public string getShowtimesClass()
  101.         {
  102.             return showtimes_Class;
  103.         }
  104.  
  105.         public void setShowtimesClass(string a)
  106.         {
  107.             showtimes_Class = a;
  108.         }
  109.  
  110.         public string getShowtimesStyle()
  111.         {
  112.             return showtimes_Style;
  113.         }
  114.  
  115.         public void setShowtimesStyle(string a)
  116.         {
  117.             showtimes_Style = a;
  118.         }
  119.  
  120.         public int getShowtimesMargin()
  121.         {
  122.             return showtimes_Margin;
  123.         }
  124.  
  125.         public void setShowtimesMargin(int a)
  126.         {
  127.             showtimes_Margin = a;
  128.         }
  129.         public int getShowtimesWidth()
  130.         {
  131.             return showtimes_Width;
  132.         }
  133.  
  134.         public void setShowtimesWidth(int a)
  135.         {
  136.             showtimes_Width = a;
  137.         }
  138.  
  139.         public string getShowtimesTime()
  140.         {
  141.             return showtimes_Time;
  142.         }
  143.  
  144.         public void setShowtimesTime(string a)
  145.         {
  146.             showtimes_Time = a;
  147.         }
  148.  
  149.     }
  150. }
  151.